package com.tanhua.autoconfig;

import com.tanhua.autoconfig.properties.StringUtil;
import com.tanhua.autoconfig.template.Sendsms;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@EnableConfigurationProperties({
        StringUtil.class
})
public class TanhuaAutoConfiguration {
    @Bean
    public Sendsms smsTemplate(StringUtil properties){
        return new Sendsms(properties);
    }
}
